﻿using Model;
using Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Service
{
    public interface IProductService
    {
        void Insert(Product prodect);

        void Update(Product prodect);

        List<Product> GetAll(string sort = "", string serach = "");

        Product GetProductById(int id);

        /// <summary>
        /// 初始化数据
        /// </summary>
        void CreateNewProduct();

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        void Delete(int id);
    }
}
